﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 亚马逊订单
    /// </summary>
    /// 

    public class AMZ_MSKUDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
        public int total { get; set; }
        public List<AMZ_MSKU> data { get; set; }

    }


    public class AMZ_MSKU
    {
        public string ID { get; set; }
        public string RowId { get; set; }

        /// <summary>
        /// 亚马逊定义的listing的id【可能为空】
        /// </summary>
        public string listing_id { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        public string sid { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        public string Platform_RowId { get; set; }

        /// <summary>
        /// 国家
        /// </summary>
        public string marketplace { get; set; }
        /// <summary>
        /// MSKU
        /// </summary>
        public string seller_sku { get; set; }

        /// <summary>
        /// FNSKU	
        /// </summary>
        public string fnsku { get; set; }
        /// <summary>
        /// ASIN
        /// </summary>
        public string asin { get; set; }
        /// <summary>
        /// ASIN链接
        /// </summary>
        public string asinLink { get; set; }
        /// <summary>
        /// 父ASIN	
        /// </summary>
        public string parent_asin { get; set; }
        /// <summary>
        /// 商品缩略图地址	
        /// </summary>
        public string small_image_url { get; set; }
        /// <summary>
        /// 状态：0 停售，1 在售	
        /// </summary>
        private string _status; 
        public string status
        {
            get { return _status; }

            set
            {
                if (value == "0") _status = "停售";
                else if (value == "1") _status = "在售";
                else _status = value;
            }
        }
        /// <summary>
        /// 是否删除：0 否，1 是	
        /// </summary>
        private string _is_delete;
        public string is_delete
        {
            get { return _is_delete; }

            set
            {
                if (value == "0") _is_delete = "否";
                else if (value == "1") _is_delete = "是";
                else _is_delete = value;
            }
        }


        /// <summary>
        /// 标题	
        /// </summary>
        public string item_name { get; set; }

        /// <summary>
        /// 本地产品SKU	
        /// </summary>
        public string local_sku { get; set; }

        /// <summary>
        /// 本地产品SKU	
        /// </summary>
        public string sku_lock { get; set; }
        public AssTable sku_lock_T { get; set; }


        /// <summary>
        /// 店铺信息	
        /// </summary>
        public string shop { get; set; }
        public AssTable shop_T { get; set; }


        /// <summary>
        /// 品名	
        /// </summary>
        public string local_name { get; set; }

        /// <summary>
        /// 币种	
        /// </summary>
        public string currency_code { get; set; }

        /// <summary>
        /// 价格【不包含促销，运费，积分】	
        /// </summary>
        public string price { get; set; }

        /// <summary>
        /// 总价【包含了促销、运费、积分】
        /// </summary>
        public string landed_price { get; set; }
        /// <summary>
        /// 优惠价	
        /// </summary>
        public string listing_price { get; set; }
        /// <summary>
        /// 运费
        /// </summary>
        public string shipping { get; set; }
        /// <summary>
        /// 积分，日本站才有
        /// </summary>
        public string points { get; set; }
        /// <summary>
        /// FBM库存	
        /// </summary>
        public string quantity { get; set; }
        /// <summary>
        /// FBA可售
        /// </summary>
        public string afn_fulfillable_quantity { get; set; }
        /// <summary>
        /// FBA不可售	
        /// </summary>
        public string afn_unsellable_quantity { get; set; }
        /// <summary>
        /// 待调仓
        /// </summary>
        public string reserved_fc_transfers { get; set; }
        /// <summary>
        /// 调仓中
        /// </summary>
        public string reserved_fc_processing { get; set; }
        /// <summary>
        /// 待发货
        /// </summary>
        public string reserved_customerorders { get; set; }
        /// <summary>
        /// 在途
        /// </summary>
        public string afn_inbound_shipped_quantity { get; set; }
        /// <summary>
        /// 计划入库
        /// </summary>
        public string afn_inbound_working_quantity { get; set; }
        /// <summary>
        /// 入库中
        /// </summary>
        public string afn_inbound_receiving_quantity { get; set; }
        /// <summary>
        /// 商品创建时间	
        /// </summary>
        public string open_date { get; set; }

        /// <summary>
        /// 商品创建时间，格式：Y-m-d H:i:s+时区	
        /// </summary>
        public string open_date_display { get; set; }

        /// <summary>
        /// All Listing报表更新时间 (注意：此为零时区时间)	
        /// </summary>
        public string listing_update_date { get; set; }

        /// <summary>
        /// 排名	
        /// </summary>
        public string seller_rank { get; set; }

        /// <summary>
        /// 排名所属的类别	
        /// </summary>
        public string seller_category { get; set; }

        /// <summary>
        /// 评论条数	
        /// </summary>
        public string review_num { get; set; }

        /// <summary>
        /// 星级评分	
        /// </summary>
        public string last_star { get; set; }
        /// <summary>
        /// 配送方式	
        /// </summary>
        public string fulfillment_channel_type { get; set; }
        /// <summary>
        /// 负责人信息	
        /// </summary>
        public List<principal_info> principal_info { get; set; }
        /// <summary>
        /// 负责人信息	
        /// </summary>
        public string principal_info_T { get; set; }
        /// <summary>
        /// 排名所属的类别	
        /// </summary>
        public List<string> seller_category_new { get; set; }
        public string seller_category_new_T { get; set; }
        /// <summary>
        /// 配对更新时间 (注意：此为北京时间)	
        /// </summary>
        public string pair_update_time { get; set; }
        /// <summary>
        /// 首单时间，格式：Y-m-d	
        /// </summary>
        public string first_order_time { get; set; }
        /// <summary>
        /// 尺寸信息，没有尺寸信息时是空	
        /// </summary>
        public List<dimension_info> dimension_info { get; set; }
        /// <summary>
        /// 项目高度	
        /// </summary>
        public string item_height { get; set; }
        /// <summary>
        /// 项目高度单位	
        /// </summary>
        public string item_height_units_type { get; set; }
        /// <summary>
        /// 项目长度	
        /// </summary>
        public string item_length { get; set; }
        /// <summary>
        /// 项目长度单位	
        /// </summary>
        public string item_length_units_type { get; set; }
        /// <summary>
        /// 项目宽度	
        /// </summary>
        public string item_width { get; set; }
        /// <summary>
        /// 项目宽度单位	
        /// </summary>
        public string item_width_units_type { get; set; }
        /// <summary>
        /// 项目重量	
        /// </summary>
        public string item_weight { get; set; }
        /// <summary>
        /// 项目重量单位	
        /// </summary>
        public string item_weight_units_type { get; set; }
        /// <summary>
        /// 包装高度	
        /// </summary>
        public string package_height { get; set; }
        /// <summary>
        /// 包装高度单位	
        /// </summary>
        public string package_height_units_type { get; set; }
        /// <summary>
        /// 包装长度	
        /// </summary>
        public string package_length { get; set; }
        /// <summary>
        /// 包装长度单位	
        /// </summary>
        public string package_length_units_type { get; set; }
        /// <summary>
        /// 包装宽度	
        /// </summary>
        public string package_width { get; set; }
        /// <summary>
        /// 包装宽度单位	
        /// </summary>
        public string package_width_units_type { get; set; }
        /// <summary>
        /// 包装重量	
        /// </summary>
        public string package_weight { get; set; }
        /// <summary>
        /// 包装重量单位	
        /// </summary>
        public string package_weight_units_type { get; set; }

        /// <summary>
        /// 小类排名信息	
        /// </summary>
        public List<small_rank> small_rank { get; set; }

    }

    public class principal_info
    {
        /// <summary>
        /// 首单时间，格式：Y-m-d	
        /// </summary>
        public string principal_uid { get; set; }
        /// <summary>
        /// 负责人姓名	
        /// </summary>
        public string principal_name { get; set; }
    }
    public class dimension_info
    {
        /// <summary>
        /// 项目高度	
        /// </summary>
        public string item_height { get; set; }
        /// <summary>
        /// 项目高度单位	
        /// </summary>
        public string item_height_units_type { get; set; }
        /// <summary>
        /// 项目长度	
        /// </summary>
        public string item_length { get; set; }
        /// <summary>
        /// 项目长度单位	
        /// </summary>
        public string item_length_units_type { get; set; }
        /// <summary>
        /// 项目宽度	
        /// </summary>
        public string item_width { get; set; }
        /// <summary>
        /// 项目宽度单位	
        /// </summary>
        public string item_width_units_type { get; set; }
        /// <summary>
        /// 项目重量	
        /// </summary>
        public string item_weight { get; set; }
        /// <summary>
        /// 项目重量单位	
        /// </summary>
        public string item_weight_units_type { get; set; }
        /// <summary>
        /// 包装高度	
        /// </summary>
        public string package_height { get; set; }
        /// <summary>
        /// 包装高度单位	
        /// </summary>
        public string package_height_units_type { get; set; }
        /// <summary>
        /// 包装长度	
        /// </summary>
        public string package_length { get; set; }
        /// <summary>
        /// 包装长度单位	
        /// </summary>
        public string package_length_units_type { get; set; }
        /// <summary>
        /// 包装宽度	
        /// </summary>
        public string package_width { get; set; }
        /// <summary>
        /// 包装宽度单位	
        /// </summary>
        public string package_width_units_type { get; set; }
        /// <summary>
        /// 包装重量	
        /// </summary>
        public string package_weight { get; set; }
        /// <summary>
        /// 包装重量单位	
        /// </summary>
        public string package_weight_units_type { get; set; }
    }
    public class small_rank
    {
        /// <summary>
        /// 小类名称	
        /// </summary>
        public string category { get; set; }
        /// <summary>
        /// 小类排名	
        /// </summary>
        public string rank { get; set; }
    }

}
